package cn.jiyun.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 定时任务类
 */
@Component
@Slf4j
public class HelloJob {
    //定时任务功能
    @XxlJob("demoJob")
    public ReturnT<String> helloJob(String param){
        log.info("demoJob定时任务执行了");
        return ReturnT.SUCCESS;
    }
}
